/**
 * 中国9号健康产业有限公司
 * Copyright (C) JiuHaoHealth Corporation. All Rights Reserved
 */
package com.jiuhaohealth.common.util;
/**
 * @author minghui(jackchenmh@gmail.com)
 * @version 2014-3-18 下午5:08:45
 */
public class Message {

	private int state;   //0：成功     1：失败
	
	private String msg;  //消息内容

	private Object rs;   //查询结果
	
	//初始为成功状态
	public Message() {
		state = 0;
		msg = "success";
		rs = null;
	}
	
	public void failure(int state, String msg) {
		this.state = state;
		this.msg = msg;
	}
	
	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getRs() {
		return rs;
	}

	public void setRs(Object rs) {
		this.rs = rs;
	}
	
}
